//
//  PersistManager.h
//  PetTown
//
//  Created by lanou3g on 15/6/6.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface PersistManager : NSObject
#pragma  mark------数据库操作
//将对象归档
- (NSData *)dataOfArchiverObject:(id)object forKey:(NSString *)key;
//反归档
- (id)unarchiverObject:(NSData *)data forKey:(NSString *)key;

- (UIBarButtonItem *)picName:(NSString *)pic size:(int)a;

- (void)clickRightBueeon:(UIBarButtonItem *)leftButton;

//收藏成功
- (UIAlertController *)collect;
//重复收藏
- (UIAlertController *)repetitionCollect;

+ (PersistManager *)shareInstance;

@end
